package com.zyzpp.recevire;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.zyzpp.service.MyService;


public class MyReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        //service启动
        Intent it =new Intent(context, MyService.class);
        context.startService(it);
    }
}
